package com.piggy.logi.sys.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.piggy.common.core.web.domain.BaseTenantEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 承运商信息编辑对象 logi_carrier
 */
@Data
@Accessors(chain = true)
@ApiModel("承运商合同信息编辑对象")
public class LogiCarrierContractEditBo extends BaseTenantEntity {

    @ApiModelProperty("合同ID")
    private Long contractId;

    @ApiModelProperty("承运商ID")
    private Long carrierId;

    @ApiModelProperty("合同类型（0承运商合同）")
    private Integer contractType;

    @ApiModelProperty("合同名称")
    private String contractName;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty("结算方式")
    private Integer settlementMethod;

    @ApiModelProperty("结算天数")
    private Integer settlementDays;

    @ApiModelProperty("油卡比例")
    private String oilCardRatio;

    @ApiModelProperty("合同保证金")
    private String contractDeposit;

    @ApiModelProperty("应用范围")
    private Integer applicationScope;

    @ApiModelProperty("附件集合")
    private String attachments;
}
